package utils;

import java.io.Serializable;
import java.text.DecimalFormat;

public class CurrencyUtils implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	public static String fen2yuan(String fen) 
	{
		Double res=NumberUtil.percent(new Double(fen));
	    return new DecimalFormat("0.00").format(res) ;
	}
	
	public static String yuan2fen(String yuan) 
	{
		Double res=NumberUtil.unpercent(new Double(yuan));
		return new DecimalFormat("0").format(res) ;
	}
	
	public static void main(String[] args) throws Exception{
		System.out.println(yuan2fen("23.02"));
	}
	
}
